package com.zhongbei.service;

import com.zhongbei.pojo.Activity;

import java.util.List;

public interface ActivityService {
    // 增加一条数据
    int insertActivity(Activity activity);
    //删
    int deleteActivityByActivityId(Integer activityId);
    //改
    int updateActivityByActivityId(Activity activity);
    //查询所有
    List<Activity> selectActivity();
    //查询 根据活动id
    List<Activity> selectActivityByActivityId(int activityId);
    //查询 根据组织id
    List<Activity> selectActivityByBranchId(int branchId);
    //查询 根据组织者id
    List<Activity> selectActivityByMemberId(int memberId);
    //查询 根据组织者id 和 组织id
    List<Activity> selectActivityByMemberIdAndBranchId(int memberId, int branchId);
}
